package com.klangner.behaviors
{
  import com.klangner.move.behavior.ISteeredObject;
  import com.klangner.move.behavior.SeekBehavior;

  public class SeekVehicleBehavior extends SeekBehavior
  {
    private var _vehicle:Vehicle;
    
    public function SeekVehicleBehavior(vehicle:Vehicle){
      super();
      
      _vehicle = vehicle;
    }
    
    public override function updateForce(obj:ISteeredObject):void{
      this.target = _vehicle.position;
      
      super.updateForce(obj);
    }
  }
}